
//
//  LMSearchBar.m
//  李明微博
//
//  Created by apple on 15/12/4.
//  Copyright (c) 2015年 李明. All rights reserved.
//

#import "LMSearchBar.h"
#import  "UIView+Frame.h"

@implementation LMSearchBar

- (instancetype) initWithFrame:(CGRect)frame
{
    if (self =[super initWithFrame:frame]) {
        
        self.font = [UIFont systemFontOfSize:13];
        
        self.background = [UIImage imageWithStretchableName:@"searchbar_textfield_background"];
        
        UIImageView *imageV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"searchbar_textfield_search_icon"]];
        
        imageV.width +=10;
        
        imageV.contentMode = UIViewContentModeCenter;
        
        self.leftView = imageV;
        
        self.leftViewMode = UITextFieldViewModeAlways;
        
        
    }
    return self;
}


@end
